<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class System_Check
{
 function check_site_status()
 {
  $useragent = $_SERVER['HTTP_USER_AGENT'];
  /*if(strchr($useragent,"MSIE 7.0")){
	  $site_offline =1;
  }*/ 
  if(strchr($useragent,"MSIE 6.0")){
	  $site_offline =1;
  } 
  /*
  if(strchr($useragent,"Firefox/2")) return 'FIREFOX 2';
  if(strchr($useragent,"MSIE 6.0")) return 'IE 6';
  if(strchr($useragent,"MSIE 5.5")) return 'IE 5.5';
  if(strchr($useragent,"MSIE 5.01")) return 'IE 5.01';
  if(strchr($useragent,"MSIE 4.01")) return 'IE 4.01';
  if(strchr($useragent,"MSIE 3.0")) return 'IE 3.0';  
  if(strchr($useragent,"Opera")) return 'Opera';
   */
  if ($site_offline) {
   include(APPPATH.'ie6.php');
   die();
  } else {
   return false;
  }  
 }
}

?>
